<template>
	<view>
		 <div class="zhangmi">
			 <input v-model="zhang" placeholder="请输入账号"/>
		 <input v-model="mi" placeholder="请输入密码"/>
		 <input v-model="mi1" placeholder="请再次输入密码"/>
		 </div>
		 
		 <button class="zhuche" type="primary" @click="zc">注册</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				zhang:'',
				mi:'',
				mi1:''
			}
		},
		methods: {
			zc(){
			
					uni.request({
						url:"http://124.221.104.5:8080/jbgn/zhuce",
						data:{zhang:this.zhang,mi:this.mi,mi1:this.mi1},
						success(res) {
							if(res.data=="注册成功")
							{uni.redirectTo({url:"/pages/index/dlzc/denglu"})}
							else{
								uni.showToast({
									title: res.data,
									    icon: 'none',
									    duration: 2000
								})
							}
							
							
						},
						
					})
				
			}
		}
	}
</script>

<style>
	.zhangmi{
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 250rpx;
	}
	.zhangmi input{
		border: 3rpx solid antiquewhite;
		border-radius: 15rpx;
		margin-top: 15rpx;
		height: 70rpx;
		width: 400rpx;
	}
	.zhuche{
		width:200rpx ;
		margin-top: 100rpx;
	}

</style>
